import request from '@/utils/request'

// 查询司机车辆信息列表
export function listDriver_car(query) {
  return request({
    url: '/system/driver_car/list',
    method: 'get',
    params: query
  })
}

// 查询司机车辆信息详细
export function getDriver_car(id) {
  return request({
    url: '/system/driver_car/' + id,
    method: 'get'
  })
}

// 新增司机车辆信息
export function addDriver_car(data) {
  return request({
    url: '/system/driver_car',
    method: 'post',
    data: data
  })
}

// 修改司机车辆信息
export function updateDriver_car(data) {
  return request({
    url: '/system/driver_car',
    method: 'put',
    data: data
  })
}

// 删除司机车辆信息
export function delDriver_car(id) {
  return request({
    url: '/system/driver_car/' + id,
    method: 'delete'
  })
}
// 生成司机二维码
export function generateDriverQRCode(params) {
  return request({
    url: '/api/driver/generateDriverQRCode',
    method: 'get',
    params: params,
    responseType: 'blob'
  })
}
